package com.tencent.wxcloudrun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencent.wxcloudrun.controller.AdminUser.*;
import com.tencent.wxcloudrun.model.AdminUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import java.util.List;

/**
 * @author 吴海涛
 * @description 针对表【admin_user】的数据库操作Service
 * @createDate 2023-11-30 16:00:46
 */
public interface AdminUserService extends IService<AdminUser> {

    AdminUser login(LoginData loginData) throws NoSuchAlgorithmException;

    HashMap getResAdminUser(AdminUser adminUser);


    Boolean resetMyPwd(ResetMyPwdData resetMyPwdData) throws NoSuchAlgorithmException;

    Boolean resetOnePwd(ResetOnePwdData resetOnePwdData) throws NoSuchAlgorithmException;

    Boolean updateMyInfo(UpdateMyInfoData updateMyInfoData);

    Boolean updateOneInfo(UpdateOneInfoData updateOneInfoData);


    Page getAdminUserList(Integer pageNum, Integer pageSize);

    HashMap getCosTempToken();

}
